import 'package:hrf_app/common/api/http_head.dart';
import 'package:hrf_app/common/services/wp_http.dart';

class UploadApi {
//上传
  static Future<Map<String, dynamic>> simpleUploadApi(data) async {
    var res = await WPHttpService.to.post(
      "${HttpHead.getHttpHead()}/api/v1/files",
      data: data,
    );
    var aa = res.data;
    return aa;
  }

//上传多
  static Future<Map<String, dynamic>> simpleUploadListApi(data) async {
    var res = await WPHttpService.to.post(
      "${HttpHead.getHttpHead()}/api/v1/files/list",
      data: data,
    );
    var aa = res.data;
    return aa;
  }
}
